<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    // array object function
    var arr=[1,2,3];
    // 获取数组的值
    console.log(arr[1])
    // 获取数组的长度
    console.log(arr.length)
    //声明一个对象 
    var hw = {
        name:"sworder",
        age: 6
    }
    // 读取对象属性
    console.log(hw.name)
    hw.sex="男";
    console.log(hw)

    function go(){
        console.log("2333333")
    }
    // 调用一个函数
    go();
    </script>
</body>
</html>